﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace TheVoiceOfSnake.Models
{
    public class Field
    {
        protected Point coordinates;      // współrzędne służce do narysowania pola
        protected int width, height;

        public Field() 
        {
            coordinates = new Point();
            width = 40;
            height = 40;
        }

        public Field(Point coordinates)
        {
            this.coordinates = coordinates;
            width = 40;
            height = 40;
        }

        public Field(int x, int y)
        {
            this.coordinates = new Point(x, y);
            width = 40;
            height = 40;
        }

        public Point Coordinates
        {
            get { return this.coordinates; }
        }

        public int Width
        {
            get { return this.width; }
        }

        public int Height
        {
            get { return this.height; }
        }

        public int X
        {
            get { return this.coordinates.X; }
        }

        public int Y
        {
            get { return this.coordinates.Y; }
        }
    }
}
